package com.njitweb.mapper;

import com.njitweb.pojo.Carousel;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CarouselMapper {
    @Insert("insert into carousel(image_url) values (#{imageUrl})")
    void addCarousel(Carousel carousel);

    List<Carousel> listCarousel();
}
